package cn.wolfcode.trip.app.controller;

import cn.wolfcode.trip.base.domain.Discuss;
import cn.wolfcode.trip.base.query.DiscussQuery;
import cn.wolfcode.trip.base.service.IHotelService;
import cn.wolfcode.trip.base.service.IDiscussService;
import cn.wolfcode.trip.base.util.JSONResult;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("discusss")
public class DiscussController {
    @Autowired
    private IDiscussService discussService;

    /**
     * 全部房间
     * @param
     * @return
     */
    @GetMapping()
    public Object list(DiscussQuery qo){
        PageInfo pageInfo = discussService.queryForList(qo);
        return pageInfo;
    }
    /*@GetMapping("/hotel/{hotelId}")
    public Object hotel(@PathVariable Long hotelId){
        PageInfo pageInfo = discussService.queryForList(hotelId);
        return pageInfo;
    }*/



}
